From fa274ba294544aaf41682b645df3b61084df6a47 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Fri, 3 Sep 2010 18:44:49 +0100 Subject: [PATCH] xl: do not run bootloader on restore. Signed-off-by: Ian Campbell Signed-off-by: Ian Jackson --- tools/libxl/xl_cmdimpl.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 3f6219b47b..9393059e71 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -1402,10 +1402,12 @@ start: goto error_out; } - ret = libxl_run_bootloader(&ctx, &d_config.b_info, d_config.num_disks > 0 ? &d_config.disks[0] : NULL, domid); - if (ret) { - fprintf(stderr, "failed to run bootloader: %d\n", ret); - goto error_out; + if (!restore_file) { + ret = libxl_run_bootloader(&ctx, &d_config.b_info, d_config.num_disks > 0 ? &d_config.disks[0] : NULL, domid); + if (ret) { + fprintf(stderr, "failed to run bootloader: %d\n", ret); + goto error_out; + } } if (!restore_file || !need_daemon) { -- 2.30.2